//using System;
//using System.Collections.Generic;
//using System.Text;

//namespace Weazel.Toad.Application.Actions
//{
//  public class RunMicroblazeCosimulationAction
//    : ActionBase
//  {
//    public RunMicroblazeCosimulationAction()
//    {
//      Application.Instance.MicroblazeCosimulation.SimulationStarted += 
//        new EventHandler<Weazel.Toad.Application.Items.SimulationEventArgs>(MicroblazeCosimulation_SimulationStarted);

//      Application.Instance.MicroblazeCosimulation.SimulationDone += 
//        new EventHandler<Weazel.Toad.Application.Items.SimulationEventArgs>(MicroblazeCosimulation_SimulationDone);

//      Enabled = true;        
//    }

//    void MicroblazeCosimulation_SimulationDone(object sender, Weazel.Toad.Application.Items.SimulationEventArgs e)
//    {
//      Enabled = true;
//    }

//    void MicroblazeCosimulation_SimulationStarted(object sender, Weazel.Toad.Application.Items.SimulationEventArgs e)
//    {
//      Enabled = false;
//    }

//    public override void Execute(object sender, EventArgs e)
//    {
//      Application.Instance.MicroblazeCosimulation.Run();
//    }
//  }
//}
